package com.gp.tms.service;

import com.gp.tms.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gp.tms.pojo.dto.LoginDto;
import com.gp.tms.utils.RespBean;
import org.springframework.security.core.userdetails.UserDetails;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author team
 * @since 2023-03-25
 */
public interface IUserService extends IService<User> {

    /**
     * 根据用户名查询登陆用户信息
     * @param username
     * @return
     */
    UserDetails getLoginUserByUsername(String username);

    RespBean<Map<String, String>> userLogin(LoginDto loginDto, HttpServletRequest request);
}
